<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">
<head>
<title>JS中输出特殊字符</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="" />
<meta name="keywords" content="" />
<script type="text/javascript">
    document.write('回车（\\n）<br />');
    document.write('换行（\\r）<br />');
    document.write('单引号（\'）<br />');
    document.write('双引号（\\"）<br />');
    document.write('反斜杠（\\）');
</script>

<style type="text/css">
</style>
</head>
    <body>
    </body>
</html>